Skip to content

Conversation

@danielfrankcom
Copy link
Contributor

Summary

This PR adds sample code for DSQL, which shows how to use the dsql plugin with Spring Boot and Hikari.

Description

The change includes a new sample directory, which shows a basic Spring Boot application which connects to a DSQL cluster. This sample differs from the samples in #1478, as the plugins and database configuration and set in a .yml file which is consumed by the application framework.

I have validated this example locally against a DSQL cluster, but it requires #1477. This PR should not be merged until the dependency PR has been merged.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@danielfrankcom danielfrankcom force-pushed the dev/frankcom/dsql-spring-sample branch from a10c0ce to 2455dd3 Compare July 17, 2025 18:17
@danielfrankcom
Copy link
Contributor Author

Update to 2455dd3 changes the dsql plugin name to iamDsql.

@danielfrankcom danielfrankcom force-pushed the dev/frankcom/dsql-spring-sample branch from 2455dd3 to fe9b450 Compare July 21, 2025 18:15
@danielfrankcom
Copy link
Contributor Author

Update to fe9b450 is a simple rebase, mostly to trigger CI jobs.

@@ -0,0 +1,16 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make sure the copyright headers are consistent across the sample files

danielfrankcom added a commit to aws-samples/aurora-dsql-samples that referenced this pull request Oct 7, 2025
This PR adds a code sample for Spring Boot.

This replaces the sample which was removed in #196 with one that matches
the style and approach taken by the existing Java samples. A GitHub
workflow is also included to test this sample and prevent regressions.

The core of the sample is based on my change in
aws/aws-advanced-jdbc-wrapper#1481, but I
tweaked things a fair bit to better match the existing Java samples.
There are also obvious differences caused by the fact that this sample
uses the Postgres driver directly without IAM wrapping.

By submitting this pull request, I confirm that my contribution is made
under
the terms of the MIT-0 license.
@sergiyvamz sergiyvamz closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants